package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.*;

import java.math.BigDecimal;

/**
 * @description: 职工福利费支出明细表
 * @author: gangan
 * @create: 2020-05-28 11:15
 */
@Data
@TableName("pf_welfare_expend")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WelfareExpend extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主表id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long baseWelfareExpendId;

    /**
     * 福利类型
     */
    private String welfareCategoryId;

    /**
     * 年度发生额
     */
    @TableField(value = "year_grant_amount",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yearGrantAmount;

    /**
     * 比例
     */
    @TableField(value = "proportion",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal proportion;


    /**
     * 备注
     */
    private String remark;
}
